package com.penglecode.amap.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AmapController {

	private String key = "60455935b23d7d0673de82652f13440d";
	
	@RequestMapping("/amap")
	public String goToIndex(){
		return "amap/index";
	}
	
	@RequestMapping("/amap/basic/mapdisplay")
	public String goToMapDisplay(Map<String,Object> modelMap){
		modelMap.put("key", key);
		return "amap/basic/mapDisplay";
	}
	
}
